﻿using DataBaseConnect;
using Microsoft.Extensions.DependencyInjection;
using DataBaseConnect.App.UserApp;
using DataBaseConnect.App.MenuApp;
using DataBaseConnect.App.RoleApp;
using DataBaseConnect.App.ButtonApp;
using DataBaseConnect.App.MessageApp;
using DataBaseConnect.Repositories;

namespace CoreMVC.Jurisdiction.Manage
{
    public static class Injection
    {
        public  static void InjectionMethod(IServiceCollection serviceCollection)
        {
            serviceCollection.AddScoped<IUserRepository, UserRepository>();
            serviceCollection.AddScoped<IUserAppService, UserAppService>();
            serviceCollection.AddScoped<IMenuRepository, MenuRepository>();
            serviceCollection.AddScoped<IMenuAppService, MenuAppService>();
            serviceCollection.AddScoped<IRoleAppService, RoleAppService>();
            serviceCollection.AddScoped<IRoleRepository, RoleRepository>();
            serviceCollection.AddScoped<IButtonService, ButtonService>();
            serviceCollection.AddScoped<IButtonRepository, ButtonRepository>();
            serviceCollection.AddScoped<IMessageAppService, MessageAppService>();
            serviceCollection.AddScoped<IMessageRepository, MessageRepository>();
        }
       
    }
}
